home *** CD-ROM | disk | FTP | other *** search
/ Mission to McDonaldLand / Mission To McDonaldLand.iso / npole.dxr / 00038_Script_INSIDEBOTH < prev    next >
Text File  |  1998-10-29  |  2KB  |  74 lines

  1. on enterFrame
  2.   global heading
  3.   global move
  4.   global updown
  5.   global nomore
  6.   global restoration
  7.   global castrestore
  8.   global CStop
  9.   
  10.   if CStop = 1 then 
  11.     if the mouseH < the locH of sprite 30 then set the member of sprite 30 = "Left"
  12.     if the mouseH > the locH of sprite 30 then set the member of sprite 30 = "Right"
  13.     abort
  14.   end if
  15.  
  16.   
  17.   if the mouseV < 270 or the mouseH > the locH of sprite 30 - 20 and the mouseH < the locH of sprite 30 + 20 then
  18.     if heading = 1 then set the member of sprite 30 = "Left"
  19.     if heading = 2 then set the member of sprite 30 = "Right"
  20.     set move = 0
  21.   end if
  22.   
  23.   if the mouseH > the locH of sprite 30 + 19 and the mouseV > 270 then 
  24.     set the member of sprite 30 = "Walk Right"
  25.     set heading = 2
  26.     set move = 1
  27.     set the locH of sprite 30 = the locH of sprite 30 + 15
  28.   end if
  29.   
  30.   if the mouseH < the locH of sprite 30 - 19 and the mouseV > 270 then 
  31.     set the member of sprite 30 = "Walk Left"
  32.     set heading = 1
  33.     set move = 1
  34.     set the locH of sprite 30 = the locH of sprite 30 - 15
  35.   end if
  36.   
  37.   if the mouseV > the locV of sprite 30 and the mouseV < the locV of sprite 30 + 50 then 
  38.     if move = 0 and heading = 1 then set the member of sprite 30 = "Left"
  39.     if move = 0 and heading = 2 then set the member of sprite 30 = "Right"
  40.     set updown = 0
  41.   end if
  42.   
  43.   if the mouseV < the locV of sprite 30 then 
  44.     if the locV of sprite 30 > 300 then
  45.       if move = 0 and heading = 1 then set the member of sprite 30 = "Walk Left"
  46.       if move = 0 and heading = 2 then set the member of sprite 30 = "Walk Right"
  47.       set the locV of sprite 30 = the locV of sprite 30 - 5
  48.       set updown = 1
  49.     end if
  50.   end if
  51.   
  52.   if the mouseV > the locV of sprite 30 + 50 then 
  53.     if the locV of sprite 30 < 350 then
  54.       if move = 0 and heading = 1 then set the member of sprite 30 = "Walk Left"
  55.       if move = 0 and heading = 2 then set the member of sprite 30 = "Walk Right"
  56.       set the locV of sprite 30 = the locV of sprite 30 + 5
  57.       set updown = 1
  58.     end if
  59.   end if
  60.   
  61.   if the locH of sprite 30 > 220 then go to "freeze"
  62.   
  63.   if the locH of sprite 30 < 100 then 
  64.     if updown = 0 then set the member of sprite 30 = "Left"
  65.     set the locH of sprite 30 = 100
  66.   end if
  67.   
  68. end
  69.  
  70.  
  71. on exitFrame
  72.   go the frame
  73. end
  74.